# -*- coding: utf-8 -*-
from datetime import timedelta
from utils.operators.bash import BashOperator

from spmi.time_sensor import time_after_01_00

spmi_ods__spmi_operation_bill = BashOperator(
    task_id='spmi_ods__spmi_operation_bill',
    execution_timeout=timedelta(hours=8),
    email=['yl_etl@yl-scm.com','yl_bigdata@yl-scm.com'],
    bash_command="spmi/ods/mysql/spmi/spmi_operation_bill/execute.sh",
    pool='spmi_operation',
    pool_slots=10,
)


spmi_ods__spmi_operation_bill << time_after_01_00